<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/2/16 0016
 * Time: 13:42
 */
namespace app\wx_api\ext\we_chat;

use app\common\model\WxAccountModel;

/**
 * 获取微信信息的类封装
 *
 * Class WXConfig
 * @package app\wx_api\ext\we_chat
 */
class WXConfig implements WXConfigInterface {

    /**
     *  获取微信的配置信息
     * @param int $wx_id  微信信息的ID
     * @return array|mixed
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public static function wxConfig($wx_id) {
        $wxM = new WxAccountModel();
        return $wxM->info(['id' => $wx_id]);
    }
}